import request from '@/utils/request'
/**
 * 登录
 * @param {Object} loginForm 登陆表单对象
 * @returns
 */
export const loginAPI = (loginForm) => {
  return request({
    method: 'post',
    url: '/sys/login',
    data: loginForm
  })
}
/**
 * 获取用户基本资料(拿到用户id)
 */
export const getUserProfileAPI = () => {
  return request({
    method: 'post',
    url: '/sys/profile'
  })
}
/**
 * 根据用户id获取员工基本信息
 */
export const getUserInfoAPI = (userId) => {
  return request({
    method: 'get',
    url: `/sys/user/${userId}`

  })
}

